﻿using Microsoft.AspNetCore.Builder;
using System;

namespace Core.Middleware.ApiRelationUrl
{
    public static class UseApiRelationUrl
    {
        /// <summary>
        /// URL地址和项目绑定到上下文
        /// </summary>
        /// <param name="applicationBuilder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseApiRelationUrlMidWare(this IApplicationBuilder applicationBuilder)
        {
            return applicationBuilder.UseMiddleware<ApiRelationUrlMidWare>();
        }
    }
}
